package com.tianhao.luo.v1.use;

import com.tianhao.luo.v1.Girl;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.util.List;

/**
 * @ClassName: GroupLeader
 * @Description: 运用迪米特法则的体育委员类
 * @author: tianhao.luo@hand-china.com
 * @date: 2020/7/14  17:05
 */
public class GroupLeader {
    private static final Logger LOGGER = LoggerFactory.getLogger(GroupLeader.class);
    private List<Girl> listGrils;

    public GroupLeader(List<Girl> listGrils) {
        this.listGrils = listGrils;
    }

    public void countGirls(){
        LOGGER.info("女生数量是："+this.listGrils.size());
    }
}
